home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
bug
/
aptitude
next >
Wrap
Text File
|
2008-09-02
|
641b
|
27 lines
#!/usr/bin/python
import os
out = os.fdopen(3, 'w')
if 'TERM' in os.environ:
out.write('Terminal: %s\n' % os.environ['TERM'])
else:
out.write('$TERM not set.\n')
if 'DISPLAY' in os.environ:
out.write('$DISPLAY is set.\n')
else:
out.write('$DISPLAY not set.\n')
out.write('`which aptitude`: %s\n' % os.popen('/usr/bin/which aptitude 2>&1').read().strip())
out.write('aptitude version information:\n')
# I would like to run `which aptitude`, but that raises security issues.
os.system('/usr/bin/aptitude --version 1>&3')
out.write('\n')
out.write('aptitude linkage:\n')
os.system('/usr/bin/ldd /usr/bin/aptitude 1>&3')